<include file="Member:head" />
<link href="__PUBLIC__/css/member.css" rel="stylesheet" type="text/css" />
<div  class="container w clearfix">
    <include file="Member:right" />
    <div class="member_main">
        <div class="perInfo">
            <div class="titleInfoBorder">
                <span>{$title}</span>
                 <a class="want" href="{:U('Member/pay')}">去充值</a>
            </div>
        </div>
        <notempty name='lists'>
            <table class='table_member'>
                <tr>
                    <th align="left">订单编号</th>
                    <th align="center">充值金额</th>
                    <th align="center"></th>
               <th align="center">用户</th>
                    
                    <th align="center">下单时间</th>
                    <th align="center">付款时间</th>
                </tr>
                <tbody>
                <foreach name="lists" item="row">
                    <tr    <if condition="$row.trade_num gt 1"> class="green"</if> >
                        <td>{$row.out_trade_no}</td>
                        <td align="center">{$row.money} </td>
                        <if condition="$row.trade_num gt 1">
                    <td align="center"> {$row.points} 个月</td>
                    <else/>
                       <td align="center">{$row|getPayPoints} {$row.symbol|getPaySymbol}</td>
                    </if>
                         <td align="center">{$row.uid|getUserName} *** {$row.uid|getSingleField=###,'user','name'}</td>
                    <td align="center">{$row.addtime|date="Y-m-d H:i",###}</td>
                    <td align="center">{$row.update_time|date="Y-m-d H:i",###}</td>
                    </tr>
                </foreach>
                </tbody>
            </table>
            <div class="pager">{$page}</div>
            <else/>
            <div class="infoNoData">
                你还没有充值记录呢，快去
                <a  href="{:U('Member/pay')}">充值</a>
                吧。
            </div>
        </notempty>
        <notempty name='statics'>
            <table class='table_member'>
                <tr>
                    <th align="center">时间</th>
                    <th align="center">充值金额</th>
                </tr>
                <tbody>
                <foreach name="statics" item="row">
                    <tr>
                        <td align="center">{$row.title}</td>
                        <td align="center">{$row.money} ***{$row.month} = {$row['money']+$row['month']}</td>
                    </tr>
                </foreach>
                </tbody>
            </table>
          </notempty>
          <notempty name='order_months'>
            <table class='table_member'>
                <tr>
                    <th align="left">订单编号</th>
                    <th align="center">充值金额</th>
                      <th align="center">月份</th>
                    <th align="center">下单时间</th>
                    <th align="center">付款时间</th>
                </tr>
                <tbody>
                <foreach name="order_months" item="row">
                    <tr>
                        <td>{$row.order_num}</td>
                        <td align="center" style="color:red;font-weight: bold">{$row.money} </td>
                          <td align="center">{$row.month} </td>
                    <td align="center">{$row.addtime|date="Y-m-d H:i",###}</td>
                    <td align="center">{$row.update_time|date="Y-m-d H:i",###}</td>
                    </tr>
                </foreach>
                </tbody>
            </table>
            
        </notempty>
         <notempty name='statics_days'>
            <table class='table_member'>
                <tr>
                    <th align="center">时间</th>
                    <th align="center">充值金额</th>
                        <th align="center">总计</th>
                </tr>
                <tbody>
                <foreach name="statics_days" item="row">
                    <tr>
                        <td align="center">{$row.title}</td>
                        <td align="center">{$row.money} ***{$row.month}</td>
                           <td align="center">{$row.total}</td>
                    </tr>
                </foreach>
                </tbody>
            </table>
          </notempty>
        <include file="Member:menu" />
    </div>
</div>

<include file="Member:foot" />
